<div id="topbar">
    <ol class="breadcrumb">
        <li>Комментарии</li>
    </ol>
</div>
<div id="content">
    <div id="flashes">
    </div>

    <div class="page-header">
        <h1><i class="glyphicon glyphicon-comment"></i> Управление комментариями.</h1>
    </div>

    <table class="table table-bordered table-striped table-comments">
        <thead>
        <tr>
            <th class="center-text column-id">#id</th>
            <th class="column-cmtr">Комментатор</th>
            <th>Комментарий</th>
            <th class="column-ip">IP</th>
            <th class="text-right text-date">Отправлен</th>
            <th class="actions">&nbsp;</th>
        </tr>
        </thead>
        <tbody>
        {{#each model as |comment|}}
            {{tr-comment comment=comment}}
            <tr>
                <td></td>
                <td>
                    {{#if comment.website}}
                        <a href="{{comment.website}}"><strong>{{comment.username}}</strong></a>
                    {{else}}
                        <strong>{{comment.username}}</strong>
                    {{/if}}
                    {{comment.countryFlag}}
                    {{#if comment.email}}
                        <br/><small>&lt;{{comment.email}}&gt;</small>
                    {{/if}}
                </td>
                <td colspan="4" class="column-gray">
                    {{#if comment.bot}}
                        <i class="glyphicon robot"></i>
                    {{/if}}
                    {{comment.userAgent}}
                </td>
            </tr>
        {{/each}}
        </tbody>
    </table>

    {{paginator-list meta=model.meta routeName="comments"}}

    {{footer-partial}}

    {{delete-confirm action="removeComment"}}
</div>
